package com.cos.shop.dao;

import com.cos.shop.entity.Address;

import java.sql.SQLException;
import java.util.List;

/**
 * @author: COS
 * @time: 2022/2/24 14:34
 * @description:
 */
public interface AddressDao {
    List<Address> getAddressListByUid(int uid) throws SQLException;

    int insertAddress(Address a) throws SQLException;

    int delete(int aid) throws SQLException;

    int update(Address a) throws SQLException;

    int setDefault(int aid) throws SQLException;

    int setAddressNoneDefault(int uid) throws SQLException;
}
